var jwt = require('jsonwebtoken')
const {secretKey,expiresIn}  =require("./default").userToken

//生成token
function generateToken(uid){
    return jwt.sign({uid},secretKey,{expiresIn})
}

module.exports = generateToken